import request from '@/utils/request'

// 创建基础资料表元素汇总
export function createInfoColumnCollect(data) {
  return request({
    url: '/infra/info-column-collect/create',
    method: 'post',
    data: data
  })
}

// 更新基础资料表元素汇总
export function updateInfoColumnCollect(data) {
  return request({
    url: '/infra/info-column-collect/update',
    method: 'put',
    data: data
  })
}

// 删除基础资料表元素汇总
export function deleteInfoColumnCollect(id) {
  return request({
    url: '/infra/info-column-collect/delete?id=' + id,
    method: 'delete'
  })
}

// 获得基础资料表元素汇总
export function getInfoColumnCollect(id) {
  return request({
    url: '/infra/info-column-collect/get?id=' + id,
    method: 'get'
  })
}

// 获得基础资料表元素汇总分页
export function getInfoColumnCollectPage(query) {
  return request({
    url: '/infra/info-column-collect/page',
    method: 'get',
    params: query
  })
}

// 导出基础资料表元素汇总 Excel
export function exportInfoColumnCollectExcel(query) {
  return request({
    url: '/infra/info-column-collect/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
